package com.edu.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

@ApiModel(value = "分页请求参数",description = "分页请求参数")
public class APIRequestPage implements Serializable {
    private static final long serialVersionUID = -2647543499875978629L;
    @ApiModelProperty(
        required = true,
        value = "页码"
    )
    private Integer pageNo;
    @ApiModelProperty(
        required = true,
        value = "页容量"
    )
    private Integer limit;

    public APIRequestPage() {
    }

    public APIRequestPage(Integer pageNo, Integer limit) {
        this.pageNo = pageNo;
        this.limit = limit;
    }

    public Integer getPageNo() {
        return null == this.pageNo ? 0 : this.pageNo;
    }

    public void setPageNo(Integer pageNo) {
        this.pageNo = pageNo;
    }

    public Integer getLimit() {
        return null == this.limit ? 0 : this.limit;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }
}
